package com.echat.serviceapigateway.security.model.authentication;

import lombok.Getter;
import lombok.Setter;

import javax.persistence.Column;
import javax.persistence.Id;
import java.time.LocalDateTime;

/**
 * Created by chenmohan on 2018/08/31
 *
 * @description
 */
@Getter
@Setter
public class TokenHistory {

    @Id
    private Long id;

    private Long userId;

    private String accessToken;

    private String refreshToken;

    private LocalDateTime accessTokenExpire;

    private LocalDateTime refreshTokenExpire;

    @Column(name="create_datetime")
    protected LocalDateTime createTime;

}
